package com.doone.telmarket.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.doone.telmarket.domain.Activity;
import com.doone.telmarket.domain.ActivityOrder;
import com.doone.telmarket.infrastructure.dao.ActivityDAO;

/**
 * @package com.doone.telmarket.service
 * @author 甘雨波
 * @description 精彩促销推荐接口实现
 * @date 2009-10-26
 */
@Service("activityOperation")
public class ActivityOperationImpl implements ActivityOperation {

	@Autowired
	private ActivityDAO activityDAO;

	public List<Activity> selectActivity() {
		// TODO Auto-generated method stub
		return activityDAO.selectActivity();
	}

	public void updateActivity(Activity activity) {
		activityDAO.updateActivity(activity);
	}

	public void deleteActivity(int activityid) {
		activityDAO.deleteActivity(activityid);
		
	}

	public void saveActivity(Activity activity) {
		activityDAO.saveActivity(activity);
		
	}

	public Activity selectById(int id) {
		return activityDAO.selectById(id);
	}

	public void deleteActivityOrder() {
		activityDAO.deleteActivityOrder();
		
	}

	public void insertActivityOrder(ActivityOrder a) {
		activityDAO.insertActivityOrder(a);
	}

	public List<Activity> selectActivityOrder() {
		return activityDAO.selectActivityOrder();
	}
	
	

}
